home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
bbs
/
cuser125.zip
/
CUSHOW.MEX
< prev
next >
Wrap
Text File
|
1997-07-12
|
5KB
|
223 lines
//////////////////////////////////////////////////////////////////////////////
// //
// CoolUser V1.25 (C)1996-1997 Neil Staib - Displays Screen //
// //
// MEX: Copywrite 1990, 1995 by Lanius Corporation. All Rights reserved. //
// //
//////////////////////////////////////////////////////////////////////////////
#include <max.mh> include <max.mh> //
#include <intpad.mh>
#define INCL_global
#define INCL_cooluser
#include <language.mh>
#include <cooluser.mh>
void display(int: opt, string: pick, string: text, string: option, int: no, char: dd, string: enter);
void main()
{
char: inkey, nonstop;
string: name, datedob, instr, temp_day1, temp_month1;
int: nameint, nameco, done, this_year, len, temp_day, temp_month, temp_year, opt, ck1;
struct _stamp:now;
init_lang_cooluser();
ck1:=checkfile("cucheck.1");
if (ck1 = 0)
{
remove(str_st_dir_txt + "cucheck.1");
}
start:
print(AVATAR_CLS," ", str_st_title, "CoolUser v", str_st_version, str_st_ver, str_st_title, " Copyright ", str_st_version, "1996-97", str_st_title, " Neil Staib\n", COL_GRAY);
print( " ", str_st_title_line , padleft("", 43, '─'), "\n\n", COL_GRAY);
#ifdef handle_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "H", str_st_handle, usr.alias, 35, ' ', "\n");
#ifdef location_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "I", str_st_location, usr.city, 20, ' ',"\n");
#ifdef voice_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "V", str_st_voice, usr.phone, 15, ' ',"\n");
#ifdef data_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "D", str_st_data, usr.dataphone, 15, ' ',"\n");
#ifdef birth_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "B", str_st_birth, formatdob(usr.dob), 10, ' ',"\n");
#ifdef gender_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "X", str_st_gender, UserSex(usr.sex), 12, ' ',"\n");
#ifdef password_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "P", str_st_password, "", 15, '*', "\n");
#ifdef language_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "L", str_st_language, language_num_to_name(usr.lang), 20, ' ',"\n");
#ifdef password_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "Z", str_st_protocol, protocol_num_to_name(usr.def_proto), 10, ' ',"\n");
#ifdef help_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "F", str_st_help, HelpLevel(usr.help), 8, ' ',"\n");
#ifdef qwk_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "A", str_st_qwk, compressor_num_to_name(usr.compress), 5, ' ',"\n");
#ifdef msg_editor_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "E", str_st_msg_editor, Boolo(usr.bored), 4, ' ',"");
#ifdef msg_viewer_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "W", str_st_msg_viewer, Bool(usr.fsr), 4, ' ', "\n");
#ifdef scn_width_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "S", str_st_scn_width, intpad(usr.width, 4) , 4, ' ', "");
#ifdef scn_length_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "G", str_st_scn_length, intpad(usr.len, 4) , 4, ' ', "\n");
display(0, "C", str_st_clear, Bool(usr.cls), 4, ' ', "");
#ifdef more_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "M", str_st_more, Bool(usr.more), 4, ' ', "\n");
#ifdef quiet_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "Q", str_st_quiet, Bool(usr.notavail), 4, ' ', "");
#ifdef hot_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "K", str_st_hot, Bool(usr.hotkeys), 4, ' ', "\n");
#ifdef ansi_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "N", str_st_ansi, Boolansi(usr.video), 4, ' ', "");
#ifdef avatar_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "T", str_st_avatar, Boolavatar(usr.video), 4, ' ', "\n");
#ifdef hidden_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "U", str_st_hidden, Bool(usr.noulist), 4, ' ', "");
#ifdef rip_opt
opt:=1;
#else
opt:=0;
#endif
display(opt, "R", str_st_rip, Bool(usr.rip), 4, ' ', "\n");
}
void display(int: opt, string: pick, string: text, string: option, int: no, char: dd, string: enter)
{
string: cu_colour;
if (opt = 1)
{
cu_colour := str_st_active_keys;
}
else
{
if (usr.video = 0)
{
pick := " ";
}
else
{
cu_colour := str_st_disable_keys;
}
}
print(str_st_key_brackets," (", cu_colour, pick, str_st_key_brackets, ") ", str_st_text,
text, str_st_key_brackets, padleft("", ( 25 - strlen(text)), '.'),
" : ", str_st_data_fields, padleft(option, no, dd), enter);
}